<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{$L.CREATE_EVENT} - {$L.EVENT_STEP3}</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/fi/bui/jquery-1.8.1.min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/seed-min.js"></script>
<script src="/assets/kxdr/steps.js"></script>
<script src="/assets/shopmanage/global_menu_jquery.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">{$L.APP_HOME} >> {$L.APP_NAME} >> {$L.APP_ADD_EVENT}</h3>
		<div class="button-group pull-right">
		  {include file='../../../PublicView/global_menu.html'}
		</div>
		</div>
	  </div>
	  </div>
	  </div>
	  </div>
 <div class="doc-content">
    <div class="panel">
      <div class="panel-header clearfix">
        <h3 class="pull-left">{$L.CREATE_EVENT}</h3>
		<button type="reset" class="button button-warning js-addgift pull-right">添加奖品</button>
      </div>
      <div class="panel-body">
	  <div class="flow-steps" style="margin:0 auto;width:948px">
		  {if $CONTROLLER_NAME == "Index"}
		  <ol class="num4">
			<li class="first">1.{$L.EVENT_STEP1}</li>
			<li class=" current-prev">2.{$L.EVENT_STEP2}</li>
			<li class="current">3.{$L.EVENT_STEP3}</li>
			<li class="last">4.{$L.EVENT_STEP4}</li>
		  </ol>
		  {/if}
		</div>
		<div class="row show-grid">
	  <div class="span8 offset1">
		<div class="panel">
		  <div class="panel-header clearfix">
			<h3 class="pull-left" title="比赛概览">{$L.EVENT_STEP3_PREVIEW}</h3>
		  </div>
		  <img title="比赛预览图" src="{$pic_url}" class="centered" />
		  <div class="panel-body">
		  <p>{$L.EVENT_GAME_NAME}：{$game_name}</p>
		  <p>{$L.EVENT_GAME_TITLE}：{$title}</p>
		  <p>{$L.EVENT_STEP1_EVENT_INFO}：{$descrip|default:""}</p>
		  <!-- <p>{$L.EVENT_STEP2_PLAYER_DESCRIP}：{$player_descrip|default:""}</p> -->
		  <p>队伍和预测方式：</p>
		  {foreach from=$players item=item name=name}
		  <p class="offset1">{$item.player_name}，{$item.think_type}，{$item.think_type_way_name}</p>
		  {/foreach}
		  <p>{$L.EVENT_START_TIME}：{$start}</p>
		  <p>{$L.EVENT_GIFTING_TIME}：{$gifting_time}</p>
		  <p>{$L.EVENT_STEP2_STOPTIME}：{if $jzfs==0}{$L.EVENT_STEP2_STOPTIME_BEFORE}{else}{$L.EVENT_STEP2_STOPTIME_AFTER}{/if}{$jzsj}{$L.EVENT_STEP3_TIME_UNIT}</p>
		  <p>{$L.EVENT_STEP2_JIFEN}：{$cyjf}{$L.EVENT_STEP3_JIFEN_UNIT}</p>
		  </div>
		</div>
	  </div>
	  <div class="span15">
	  	<ul class="breadcrumb">
			<li class="active">{$L.EVENT_STEP3_TITLE}</li>
		  </ul>
		  <div class="row js-giftlist">
          <div class="control-group span15">
            <div class="controls js-gift-list">
			  {if $gifts}
			  {foreach from=$gifts item=item}
				<div class="well well-small button-tabs gift{$item.id}"><div class="span13"><button class="button button-mini"><i class="icon icon-map-marker"></i>{$item.player_name}【{$item.think_type}】</button> <button class="button button-mini"><i class="icon icon-certificate"></i>{$item.cffs}</button> 的买家可 <button class="button button-mini"><i class="icon {$item.icon}"></i>{$item.hqfs}</button>奖品<button class="button button-mini"><i class="icon icon-gift"></i>{$item.name}</button> 共 <button class="button button-mini"><i class="icon icon-user"></i>{$item.event_quant}名</button>&nbsp;</div><button class="button button-mini button-warning js-delgift pull-right"  data-gid="{$item.id}">删除</button></div>
			  {/foreach}
			  {else}
              <div class="well well-small button-tabs js-nogift" id="l3">
			  {$L.EVENT_STEP3_PLS_ADDGIFT}
			  </div>
			  {/if}
			</div>
          </div>
        </div>
		  <div id="content" class="hide">
		<form id="J_Form" class="form-horizontal">
		<input type="hidden" class="zmc" value="{$zmc}" />
        <div class="row">
          <div class="control-group span15">
            <label class="control-label" title="队伍的标题">队伍标题：</label>
            <div class="controls title">
              
            </div>
          </div>
        </div><div class="row">
          <div class="control-group span15">
            <label class="control-label" title="预测队伍：">{$L.EVENT_STEP3_GUESS_PLAYER}：</label>
            <div class="controls">
              <div id="player">
				  <input type="hidden" class="js-player_json" value='{$player_json}' name="hide">
				  <input type="hidden" class="js-playerval" value="" name="hide" data-msg="{$L.EVENT_STEP3_GUESS_PLAYER_TIP}">
				  <span class="auxiliary-text pull-right">{$L.EVENT_STEP3_GUESS_PLAYER_TIP}</span>
			 </div>
            </div>
          </div>
        </div>
        <div class="row js-target_data hide">
          <div class="control-group span15">
            <label class="control-label">预设数据：</label>
            <div class="controls">
			<span class="target_data"></span>
            </div>
          </div>
        </div>
		<div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GUESS_DIFF}：</label>
            <div class="controls">
              <div id="s4">
				  <input name="id" type="text" class="input-small control-text js-cfcj" style="display:none" value="0">
				  <span class="auxiliary-text pull-right">{$L.EVENT_STEP3_GUESS_DIFF_TIP}</span>
			 </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GIFT_LIST}：</label>
            <div class="controls">
			<input type="hidden" class="js-gift_pic" />
			<input type="hidden" class="gift-name" />
			<input type="hidden" class="gift-type" />
			<input type="hidden" class="gift-id" data-msg="{$L.EVENT_STEP3_PLS_SELECT_GIFT}" />
              <div id="s5">
				  <input type="hidden" class="js-hqjpval" value="b" name="hide">
				  <input name="id" type="text" class="input-small control-text js-hqjp" style="display:none" value="0">
			   <!-- <button type="reset" class="button button-small" style="margin-left:5px">增加</button> -->
			  <span class="auxiliary-text pull-right">{$L.EVENT_STEP3_CAN_NOT_SEE_GIFT}<a href="/?m=Kxdr&c=Gift" target="_blank">{$L.EVENT_STEP3_ADD_GIFT}</a>{$L.EVENT_STEP3_THEN_REFRESH}</span>
			  </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GIFT_COUNT}：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-jpsl" value="0">
			   <div id="sl2" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GIFT_GETWAY}：</label>
            <div class="controls">
              <div id="s6">
				  <input type="hidden" class="js-hqfsval" value="b" name="hide" data-msg="{$L.EVENT_STEP3_PLS_SELECT_HQFS}">
				  <input name="id" type="text" class="input-small control-text js-hqfs" style="display:none" value="0">
				  <span class="auxiliary-text pull-right">{$L.EVENT_STEP3_GETING_SHOW}<a href="#" target="_blank">{$L.EVENT_STEP3_GETING_SHOW_1}</a></span>
			  </div>
            </div>
          </div>
        </div>
        <div class="row js-set-jpgl hide">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GIFT_LOTT}：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-jpgl" style="background:url(http://img03.taobaocdn.com/imgextra/i3/44173724/TB2JPlHcpXXXXbvXXXXXXXXXXXX-44173724.jpg) 0 5px no-repeat"  value="0">
			   <div id="sl1" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
        <div class="row js-set-jpgl hide">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_GIFT_LOTT_TIMES}：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-cjcs"   value="0">
			   <div id="sl3" class="span5"  style="margin-top:8px"></div>
            </div>
          </div>
        </div>
        <div class="row js-set-dddj hide">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_ORDER_PAYMENT}：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-payment"   value="0">元以上已付款的订单
            </div>
          </div>
        </div>
        <div class="row js-set-dddj hide">
          <div class="control-group span15">
            <label class="control-label">{$L.EVENT_STEP3_ORDER_PAYTIME}：</label>
            <div class="controls bui-form-group" data-rules="{ldelim}dateRange : true{rdelim}">
              <input class="pay_time_start calendar" value="{$pay_time_start|default:""}" data-tip="{ldelim}text : '付款时间'{rdelim}"  class="input-small calendar " type="text"><label>&nbsp;-&nbsp;</label>
              <input class="pay_time_end calendar" value="{$pay_time_end|default:""}" data-tip="{ldelim}text : '付款时间'{rdelim}"  class="input-small calendar " type="text">
			</div>
          </div>
        </div>
        <div class="row js-ext js-set-dddj hide">
          <div class="control-group span15">
            <label class="control-label">订单包含商品：</label>
            <div class="controls">
				<input type="hidden" readonly="readonly" class="control-text span2 span-width order_items form" value="" data-post="order_items" >
				<span class="items-order_items">{$cfg.order_items_count|default:'0'}</span>件商品<button class="button button-mini button-danger js-orderset" type="button">设置</button><i class=""></i>
				<span class="auxiliary-text">
				订单包含指定的商品才可以兑换。
				</span>
			</div>
          </div>
        </div>
		<div class="row js-ext js-set-metal hide">
          <div class="control-group span15">
            <label class="control-label">勋章：</label>
            <div class="controls">
			<input name="medalid" type="hidden" class="pull-left input-small control-text js-medalid  bui-form-field" value="65" aria-disabled="false" style="display: none;">
			<input name="medal_name" class="pull-left input-small control-text js-medal_name  bui-form-field" type="hidden" value="" aria-disabled="false" style="display: none;">
			<input name="medal_pic" class="pull-left input-small control-text js-medal_pic  bui-form-field" type="hidden" value="" aria-disabled="false" style="display: none;">
			  <button type="button" data-tp="" class="button button-mini button-danger js-get-metal">选择</button>
			  <span class="medal"></span>
			  <input name="id" type="text" class="input span1 control-text js-medal_quant" value="1">个
            </div>
          </div>
        </div>
        <div class="row js-ext js-set-item hide">
          <div class="control-group control-row3 span15">
            <label class="control-label">收藏单品：</label>
            <div class="controls">
			<div class="tips tips-small tips-warning tips-no-icon">
			  <div class="tips-content">注意，收藏单品只做引导，不判定用户是否真的收藏过了。</div>
			</div>
				<input type="hidden" readonly="readonly" class="control-text span2 span-width collect_items form" value="" data-post="collect_items" >
				<span class="items-collect_items">0</span>件商品<button class="button button-mini button-danger js-itemset" type="button">设置</button><i class=""></i>
				<span class="auxiliary-text">
				必须收藏商品之后才可以领奖
				</span>
			</div>
          </div>
        </div>
        <div class="row js-ext js-set-cart hide">
          <div class="control-group control-row3 span15">
            <label class="control-label">加购物车：</label>
            <div class="controls">
			<div class="tips tips-small tips-warning tips-no-icon">
			  <div class="tips-content">注意，加购物车只做引导，不判定用户是否真的加购物车。</div>
			</div>
				<input type="hidden" readonly="readonly" class="control-text span2 span-width cart_items form" value="" data-post="cart_items" >
				<span class="items-cart_items">{$cfg.order_items_count|default:'0'}</span>件商品<button class="button button-mini button-danger js-cartset" type="button">设置</button><i class=""></i>
				<span class="auxiliary-text">
				必须加购物车之后才可以领奖。
				</span>
			</div>
          </div>
        </div>
        <div class="row js-ext js-set-show-firend hide">
          <div class="control-group span15">
            <label class="control-label">炫耀标题：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left control-text js-show-title"   value="我中奖啦！">
            </div>
          </div>
        </div>
        <div class="row js-ext js-set-show-firend hide">
          <div class="control-group control-row4 span15">
            <label class="control-label">炫耀内容：</label>
            <div class="controls">
			  <textarea class="js-show-content">请输入炫耀内容</textarea>
            </div>
          </div>
        </div>
        <div class="row js-ext js-set-jifen hide">
          <div class="control-group span15">
            <label class="control-label">积分：</label>
            <div class="controls">
			  <input name="id" type="text" class="pull-left input-small control-text js-jifen"   value="0">积分
            </div>
          </div>
        </div>
		<hr />
        <div class="row ">
          <div class="control-group span15">
            <label class="control-label">勋章条件：</label>
            <div class="controls">
			<input name="rule_medalid" type="hidden" class="pull-left input-small control-text js-rule_medalid  bui-form-field" value="" aria-disabled="false" style="display: none;">
			<input name="rule_medal_name" class="pull-left input-small control-text js-rule_medal_name  bui-form-field" type="hidden" value="" aria-disabled="false" style="display: none;">
			<input name="rule_medal_pic" class="pull-left input-small control-text js-rule_medal_pic  bui-form-field" type="hidden" value="" aria-disabled="false" style="display: none;">
			  <button type="button" class="button button-mini button-success js-rule_medal_c js-cancel-metal hide">取消</button>
			  <button type="button" data-tp="rule" class="button button-mini button-danger js-rule_medal js-get-metal">选择</button>
			  <span class="rule_medal"></span><span class="auxiliary-text pull-right">持有该勋章才可以领奖</span>
            </div>
          </div>
        </div>
    </form>
	</div>
		<div class="row">
          <div class="control-group span15 offset6">
			<button type="reset" class="button button-warning js-addgift">{$L.EVENT_STEP3_ADDGIFT}</button>
			{if $CONTROLLER_NAME == "Edit" } <a href="/?m=Kxdr&c=Index">{$L.EVENT_STEP3_EDIT_RETURN}</a>{/if}
		  </div>
		</div>
        <div class="row form-actions actions-bar" style="margin-left:0">
            <div class="span13 offset5 ">
			{if $CONTROLLER_NAME == "Index"}
              <a type="submit" href="/?m=Kxdr&c=Index&a=step4" class="button button-primary">{$L.EVENT_NEXT_STEP}</a>
              <a type="reset" href="/?m=Kxdr&c=Index&a=step2&edit=0">{$L.EVENT_PREV_STEP}</a>
			{else}
			
			{/if}
            </div>
        </div>
	  </div>
</div>
</body>
</html>